package com.inspinia.message.dao;

import com.inspinia.base.dao.BaseDao;
import com.inspinia.message.common.model.Notice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 通知dao
 * Created by heshun on 2018-1-8.
 */
public interface NoticeDao extends BaseDao<Notice> {

    /**
     * 通过ids集合查找通知
     *
     * @param noticeIds
     * @return
     */
    List<Notice> findByIds(@Param("ids") List<Long> noticeIds);

    void deleteDayBefore(int day);

}